package com.sifa.springcloud.service;

import com.sifa.springcloud.entities.CommentResult;
import com.sifa.springcloud.entities.Payment;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @param
 * @description  使用Feign的接口调用服务的service层接口
 * @return
 */

@FeignClient("CLOUD-PAYMENT-SERVICE")
public interface PaymentServiceFeign {

    @GetMapping("/payment/get/{id}")
    public CommentResult<Payment> getPayment(@PathVariable("id") Integer id);
}
